﻿@using KRM.Core
@model List<KRM.Core.tblBook>
@{
    
}
<div class="portlet box green ">
    <div class="portlet-title">
        <div class="caption"><i class="icon-check"></i>Leave Today</div>
                <div class="tools">
                        <a href="javascript:;" class="collapse"></a>
                     </div>
    </div>
    <div class="portlet-body">               
    <div class="scroller" style="height: 300px;" data-always-visible="1" data-rail-visible="0">            
        <table class="table feeds" >
            <thead>
                    <tr>
                             <th></th>
                              <th>From </th>
                              <th>To</th>
                           </tr>
                        </thead>  
            <tbody>@foreach (var item in Model)
                   {    
                                    <tr>
                                         <td>
                                             <div class="col-md-12">
                                                 <div class=""style="float: left;padding-right: 10px">
                                                     <img src="/Upload/Avatar/@(item.tblPersonalRequest.Image??"avatar-default.jpg")" class="img-leaveToday" >
                                                 </div>
                                                 <div class="" style="float: left; ">
                                                     <div class="row">
                                                         <span class="col-md-12 fullname">@item.tblPersonalRequest.FullName </span>
                                                         <div class="col-md-12 tooltips"  style="color: #6b6b6b;font-size: 13px;" data-placement="right" title="" data-original-title="Department">
                                                             <i class="icon-briefcase" style="font-size: 12px;"></i> @(item.tblPersonalRequest.Department==null?"":item.tblPersonalRequest.Department.DepartmentName)
                                                         </div>
                                                         <div class="col-md-12 tooltips" style="color: #6b6b6b;font-size: 13px;" data-placement="right" title="" data-original-title="Site">
                                                             <i class="icon-sitemap"  style="font-size: 12px;" ></i> @(item.tblPersonalRequest.Site==null?"":item.tblPersonalRequest.Site.Name)
                                                         </div>
                                                     </div>
                                                 </div>
                                             </div>
                                         </td>
                                         <td><span class="start">@item.StartDate.ToString("MM/dd/yyyy") </span></td>
                                         <td><span class="end">@item.EndDate.ToString("MM/dd/yyyy") </span></td>
                                     </tr>
            }
            
            </tbody>
        </table>  </div>
        <div class="scroller-footer">
        <span class="pull-right">
            <a href="/HolidayManagement/CalendarHolidayRequest">See All Date  <i class="m-icon-swapright m-icon-gray"></i></a> &nbsp;
        </span>
    </div>
    </div>
    
</div>